#include<stdio.h>
#include<sys/types.h>
#include<signal.h>
#include<stdlib.h>
#include<unistd.h>
void Usage(const char* str)
{
    printf("Usage:%s pid signal\n",str);
}
int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    //argv[1]是pid  argv[2]就是信号
    int pid = atoi(argv[1]);
    int signal = atoi(argv[2]);
    kill(pid,signal);
    return 0;
}